//
//  HHNavigationController.m
//  gitosc01
//
//  Created by hjl on 16/3/20.
//  Copyright © 2016年 hjl. All rights reserved.
//

#import "HHNavigationController.h"

@interface HHNavigationController ()

@end

@implementation HHNavigationController

// 初始化导航栏
+ (void)initialize
{
    UINavigationBar *bar = [UINavigationBar appearance];
    
    // 设置导航栏为深蓝色
    bar.barTintColor = HHRGBColor(24, 88, 145, 1.0);
    
    // 设置导航栏左侧返回键的颜色为白色
    bar.barStyle = UIStatusBarStyleDefault;
    
    bar.tintColor = [UIColor whiteColor];
    
    // 设置导航栏文字的大小和颜色
    NSMutableDictionary *md = [NSMutableDictionary dictionary];
    md[NSFontAttributeName] = [UIFont systemFontOfSize:18];
    md[NSForegroundColorAttributeName] = [UIColor whiteColor];
    [bar setTitleTextAttributes:md];
    
    // 设置图片
    // [bar setBackgroundImage:[UIImage imageNamed:@"name"] forBarMetrics:UIBarMetricsDefault];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
